/*
 * Copyright (C), 2002-2017, 苏宁易购电子商务有限公司
 * FileName: MemberConstants.java
 * Author:   15050536
 * Date:     2017年3月27日 下午2:32:32
 * Description: //模块目的、功能描述      
 * History: //修改记录
 * <author>      <time>      <version>    <desc>
 * 修改人姓名             修改时间            版本号                  描述
 */
package com.suning.sawp.member.constant;

import java.util.HashMap;
import java.util.Map;

import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;

/**
 * 会员需要的一些常量
 *
 * @author 15050536 石键平
 */
public class MemberConstants {

	public static final DateTimeFormatter formatter = DateTimeFormat.forPattern("yyyy-MM-dd");

	/**
	 * 第一页
	 */
	public static final Integer ONE_PAGE = 0;

	/**
	 * 默认一页10条数据
	 */
	public static final int PAGE_SIZE = 10;

	/**
	 * 门店外拓
	 */
	public static final Short STORE_EXPEND = 1;

	/**
	 * 询价未购
	 */
	public static final Short INQUIRY_NOT_BUY = 2;

	/**
	 * 预充值锁定
	 */
	public static final Short PRE_RECHARGE = 0;

	/**
	 * 意向客户
	 */
	public static final Short INTENTION_CUSTOMER = 1;

	/**
	 * 单品
	 */
	public static final Short SINGLE = 1;

	/**
	 * 套购
	 */
	public static final Short MULTIPLE = 2;

	/**
	 * 外拓今日
	 */
	public static final String EXPAND_TODAY = "0";

	/**
	 * 外拓活动期间
	 */
	public static final String EXPAND_PERIOD = "1";

	/**
	 * 询价未购今日
	 */
	public static final String INQUIRE_TODAY = "0";

	/**
	 * 询价未购昨日
	 */
	public static final String INQUIRE_YESTERDAY = "1";

	/**
	 * 询价未购本月
	 */
	public static final String INQUIRE_MONTH = "2";

	/**
	 * 0
	 */
	public static final Short ZERO = 0;

	/**
	 * 1
	 */
	public static final Short ONE = 1;

	/**
	 * 2
	 */
	public static final Short TWO = 2;

	/**
	 * 预计购买时间近一月
	 */
	public static final String BUY_ON_ONE_MONTH = "1";

	/**
	 * 预计购买时间近二月
	 */
	public static final String BUY_ON_TWO_MONTH = "2";

	/**
	 * 手机跟进
	 */
	public static final String FOLLOW_TYPE_BY_PHONE = "1";

	/**
	 * 微信跟进
	 */
	public static final String FOLLOW_TYPE_BY_WECHAT = "2";

	public static final Map<String, String> CUST_LEVEL = new HashMap<String, String>();

	static {
		CUST_LEVEL.put("161000000100", "V0");
		CUST_LEVEL.put("161000000110", "V1");
		CUST_LEVEL.put("161000000120", "V2");
		CUST_LEVEL.put("161000000130", "V3");
		CUST_LEVEL.put("161000000140", "V4");
		CUST_LEVEL.put("161000000150", "超级粉丝");
		CUST_LEVEL.put("161000000160", "V0");
		CUST_LEVEL.put("161000000000", "暂无等级");
		CUST_LEVEL.put("161099999998", "暂无等级");
		CUST_LEVEL.put("161099999999", "暂无等级");
	}

	/**
	 * 苏宁小店
	 */
	public static final String MINI_SHOP = "M";

	/**
	 * 服务站
	 */
	public static final String SERVICE_SHOP = "S";

	/**
	 * 常规店
	 */
	public static final String NORMAL_SHOP = "N";

	/**
	 * 各种类型的店，实际的编码，对应关系map
	 */
	public static final Map<String, String> SHOP_TYPE_MAP = new HashMap<String, String>();
	static {
		// 小店
		SHOP_TYPE_MAP.put(MINI_SHOP, "22");
		// 服务站
		SHOP_TYPE_MAP.put(SERVICE_SHOP, "13");
		// 常规门店
		SHOP_TYPE_MAP.put(NORMAL_SHOP, "1,2,3,4,5,6,7,8,9,10,11,12,14,15,16,17,18,21");
	}

	/**
	 * 拓展活动状态
	 *
	 * @author 15060460
	 * @see [相关类/方法]（可选）
	 * @since [产品/模块版本] （可选）
	 */
	public enum ActivityStatus {
		NOT_START("0"), STARTING("1"), ENDING("2");
		private String status;

		ActivityStatus(String status) {
			this.status = status;
		}

		public String getStatus() {
			return status;
		}
	}

	public static interface EmployeeOrgLevel {

		String HQ = "0";// 总部

		String CAMPANY = "1";// 分公司

		String AREA = "2";// 大区

		String SHOP = "4";// 门店
	}

	/**
	 * 必填标签
	 */
	public static String REQUIRED_LABEL = "0";

	/**
	 * 选填标签
	 */
	public static String CHOOSED_LABEL = "1";
}
